<include file="Public:header" />
<div class="content-box"><!-- Start Content Box -->
    <switch name="ACTION_NAME">
        <case value="region">
            <div class="content-box-header">

                <h3>{$title}</h3>

                <ul class="content-box-tabs">
                    <li><a href="#tab1" class="default-tab">列表</a></li>

                </ul>

                <div class="clear"></div>

            </div> <!-- End .content-box-header -->

            <div class="content-box-content">

                <div class="tab-content default-tab" id="tab1">
                    <table width="100%" border="0" cellspacing="1" >
                        <volist name="regions" id="region">
                            <tr>
                                <td>{$region.name}</td>
                                <td>{$region.pinyin}</td>
                            </tr>
                        </volist>
                    </table>
                </div>


            </div> <!-- End .content-box-content -->
        </case>

        <case value="city">

            <div class="content-box-header">

                <h3>{$title}</h3>

                <ul class="content-box-tabs">
                    <li><a href="#tab1" class="default-tab">列表</a></li>

                </ul>

                <div class="clear"></div>

            </div> <!-- End .content-box-header -->

            <div class="content-box-content">

                <div class="tab-content default-tab" id="tab1">
                    <table width="100%" border="0" cellspacing="1" >
                        <volist name="citys" id="city">
                            <tr>
                                <td><a href="__URL__/region/id/{$city.id}">{$city.name}</a></td>
                                <td>{$city.pinyin}</td>
                            </tr>
                        </volist>
                    </table>
                </div>

            </div> <!-- End .content-box-content -->


        </case>
        <default />


        <div class="content-box-header">

            <h3>{$title}</h3>

            <ul class="content-box-tabs">
                <li><a href="#tab1" class="default-tab">列表</a></li>

            </ul>

            <div class="clear"></div>

        </div> <!-- End .content-box-header -->

        <div class="content-box-content">

            <div class="tab-content default-tab" id="tab1">
                <form name="memberform" method="post" action="__URL__/batch">
                    <table>
                        <thead>
                            <tr>
                                <th><input class="check-all" type="checkbox" /></th>
                                <th>省市</th>
                                <th>拼音</th>
                                <th>操作</th>
                            </tr>
                        </thead>

                        <tbody>
                        <volist name="provinces" id="province" >
                            <tr>
                                <th><input name="id[]" type="checkbox" id="id[]" value="{$province.id}"  /></th>
                                <td><a href="__URL__/city/id/{$province.id}">{$province.name}</a></td>
                                <td><a href="__URL__/city/id/{$province.id}">{$province.pinyin}</a></td>
                                <td>
                            <if condition= "$province.open eq 1 ">
                                <a href="__URL__/close/id/{$province.id}">关闭</a>
                                <else/>
                                <a href="__URL__/open/id/{$province.id}">开通</a>
                            </if>
                            </td>
                            </tr>
                        </volist>

                        </tbody>

                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="bulk-actions align-left">
                                        <select name="act">
                                            <option value="open">开通</option>
                                            <option value="pinyin">生成拼音</option>
                                        </select><input  class="button" type="submit" value="确定"  />

                                    </div>
                                    <div class="clear"></div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>

        </div> <!-- End .content-box-content -->
    </switch>
</div> <!-- End .content-box -->
<include file="Public:footer" />
